﻿ 
namespace Core.Items.Modules
{
    /*

		MetaGroup                      = Armor
		Group                          = ArmorRepairersTunings
		Module                         = diaptes armor repairer tuning
		CpuUsage                       = 32.00 TF
		ReactorUsage                   = 22.00 RP
		Type                           = Passive
		Slot                           = Head
		TechnologicalLevel             = T2
		Mass                           = 270.00 kg
		PackedVolume                   = 0.25 U
		Volume                         = 0.50 U
		ArmorRepairAccumulatorUsage    = -5 %
		ArmorRepairAmount              = 10.00 %
		ArmorRepairCycleTime           = -5 %
		RemoteArmorRepairAccumulatorUsage = -5 %
    */

    using System;
    using Base;
    using Contracts.Enums;
    using Contracts.Interfaces;
    using Extensions;
    using Features;
    
    /// <summary>
    /// Diaptes armor repairer tuning module class
    /// </summary>
    /// <remarks>File generated on 31/10/2011 16:00:53</remarks>
    public sealed class DiaptesArmorRepairerTuning : ModuleBase
    {
        /// <summary>
        /// Create a new instance of the <see cref="DiaptesArmorRepairerTuning"/> class.
        /// </summary>
        public DiaptesArmorRepairerTuning()
            : base(
            "Diaptes armor repairer tuning",
            "",
            ModuleMetaGroupsEnum.Armor,
            ModuleGroupsEnum.ArmorRepairersTunings,
            TechnologyLevelsEnum.Level2,
            SizesEnum.Small,
            new LazyFeature[] { 
				new LazyFeature(typeof(ArmorModuleCpuUsage<double>),32.00),
				new LazyFeature(typeof(ArmorModuleReactorUsage<double>),22.00),
				new LazyFeature(typeof(ModuleMass<double>),270.00), },
            null,
            new IModifier[] { 
				new Modifier( FeatureTypesEnum.Robot, FeaturesEnum.RobotMass, 270.00 ){ IsVisible = false },
				new Modifier( FeatureTypesEnum.Module, FeaturesEnum.ArmorRepairAccumulatorUsage, -0.05 ){ Unit = UnitsEnum.Percentage, DisplayName = "Repairer accumulator usage"  },
				new Modifier( FeatureTypesEnum.Module, FeaturesEnum.ArmorRepairAmount, 0.1 ){ Unit = UnitsEnum.Percentage, DisplayName = "Repair amount"  },
				new Modifier( FeatureTypesEnum.Module, FeaturesEnum.RemoteArmorRepairAmount, 0.1 ){ Unit = UnitsEnum.Percentage, DisplayName = "Remote Repair amount"  },
                new Modifier( FeatureTypesEnum.Module, FeaturesEnum.ArmorRepairCycleTime, -0.05 ){ Unit = UnitsEnum.Percentage, DisplayName = "Repair cycle time"  },
				new Modifier( FeatureTypesEnum.Module, FeaturesEnum.RemoteArmorRepairCycleTime, -0.05 ){ Unit = UnitsEnum.Percentage, DisplayName = "Remote Repair cycle time"  },
                new Modifier( FeatureTypesEnum.Module, FeaturesEnum.RemoteArmorRepairAccumulatorUsage, -0.1 ){ Unit = UnitsEnum.Percentage, DisplayName = "Remote repairer accumulator usage"  }, } )
        {
        }

        /// <summary>
        /// Obtains the activation type
        /// </summary>
        public override ModuleActivationTypesEnum ActivationType
        {
            get { return ModuleActivationTypesEnum.Passive; }
        }
        /// <summary>
        /// Obtains the module slot group 
        /// </summary>
        public override SlotGroupsEnum SlotGroup
        {
            get { return SlotGroupsEnum.Head; }
        }
        /// <summary>
        /// Obtains the module slot type 
        /// </summary>
        public override SlotTypesEnum SlotType
        {
            get { return SlotTypesEnum.Modules; }
        }
    }
}